<div class="box">
    
  <div class="box-header">

    <div class="row">
        <!-- <div class="col-sm-5">
            <ob_link><a class="btn export" url="{:url('exportMoneyOrderList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>
        </div> -->
        <div class="col-sm-6">
            支付宝收入：<span style="color:red">{$zfb}</span>元 &nbsp;&nbsp;&nbsp;&nbsp; 微信收入：<span style="color:red">{$wx}</span>元
        </div>
        <div class="col-sm-7">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="订单号|用户名|姓名">
					<select name="pay" class="pull-right form-control" style="width:120px">
						<option value=''>支付方式</option>
						<option value='1'>现金支付</option>
						<option value='2'>支付宝支付</option>
						<option value='3'>微信支付</option>
					</select>
                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('moneyOrder')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>
    
  </div>
    
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>订单号</th>
          <th>用户名</th>
          <th>总金额</th>
		  <th>套餐</th>
          <th>有效期（月）</th>
		  <th>支付方式</th>
		  <th>时间</th>
		  <th>状态</th>	  
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.order_sn}</td>
                  <td>{$vo.username}（{$vo.name}）</td>
                  <td>{$vo.money}</td>
                  <td>{$vo.name}</td>
				  <td>{$vo.month}</td>
				  <td>{if $vo.pay == 1}现金支付{/if}{if $vo.pay == 2}支付宝支付{/if}{if $vo.pay == 3}微信支付{/if}</td>
				  <td>{$vo.create_time}</td>
                  <td>{if $vo.stat == 0}未支付{else}已支付{/if}</td>				  
                  <td class="col-md-3 text-center">
                      <!-- <ob_link><a href="{:url('moneyLogList', array('id' => $vo['id']))}" class="btn"><i class="fa fa-edit"></i> MDC转让记录</a></ob_link> -->
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>
<div class="box-footer">
	<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
</div>
  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>

<script>
    //导出功能
    $(".export").click(function(){
        
        window.location.href = searchFormUrl($(".export"));
    });
	function addMoney(){
		url="{:url('moneyAdd')}";
		if(confirm("每次新增100条勋章，您确定新增勋章吗？")) {  
             window.location.href=url;
        }	
	}
</script>